package org.rsbot.event.impl;

import java.awt.Graphics;
import org.rsbot.bot.Bot;
import org.rsbot.event.listeners.TextPaintListener;
import org.rsbot.script.methods.Menu;
import org.rsbot.script.methods.MethodContext;
import org.rsbot.util.StringUtil;

public class TMenuActions
  implements TextPaintListener
{
  private Menu menu;

  public TMenuActions(Bot paramBot)
  {
    this.menu = paramBot.getMethodContext().menu;
  }

  public int drawLine(Graphics paramGraphics, int paramInt) {
    String[] arrayOfString1 = this.menu.getItems();
    int i = 0;
    for (String str : arrayOfString1) {
      StringUtil.drawLine(paramGraphics, paramInt++, i++ + ": [red]" + str);
    }
    return paramInt;
  }
}